<!-- <script>
    window.location.href='/index';
</script> -->
<?php 
    include 'confing/common.php';
    
    // 检查是否开启了在线商店，并且访问路径中包含?id=
    if ($conf["onlineStore_open"] == '1' && strpos($_SERVER['REQUEST_URI'], '?id=') !== false) {
        // 如果条件满足，加载商店页面
        include_once($root . '/index/' . $conf['storePath']);
    } else {
        // 如果不满足条件，输出JavaScript代码跳转到默认首页
        echo '<script>window.location.href = "/index/index";</script>';
    }
?>